// 用户登录,注册

import request from "../utils/request.js"

export function register(data) {
  return request({
    url: "/api/register",
    method: "POST",
    data
  })
}

export function login(data) {
  console.log(data)
  return request({
    url: '/api/login',
    method: "POST",
    data
  })
}